package com.benny_driving_dri.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import android.widget.Toast;

import com.benny_driving_dri.service.TaximeterSer;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Toast.makeText(context, "Service Start", Toast.LENGTH_LONG).show();
		Log.i("TaximeterSer", "-s-s-s-s-s-s-s-s-s-s--s-s-s-s-s-s-s-");
		Intent i = new Intent(context, TaximeterSer.class);
		context.startService(i);
		// SharedPreferences sp = context.getSharedPreferences("taximeter",
		// Context.MODE_PRIVATE);
		// int mode = sp.getInt("mode", -1);
		// switch(mode){
		// case -1:
		// Editor et = sp.edit();
		// et.putInt("mode", TaximeterSer.MODE_VOID);
		// break;
		// case TaximeterSer.MODE_START:
		// break;
		// }
	}

}
